cmake_minimum_required(VERSION 3.5)

project(pbounpack LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(PkgConfig)
pkg_check_modules(GLUT IMPORTED_TARGET glut)
pkg_check_modules(GLU IMPORTED_TARGET glu)
pkg_check_modules(GL IMPORTED_TARGET gl)

add_executable(${PROJECT_NAME}
    main.cpp
    glExtension.cpp
    pboUnpack.cbp
    Timer.cpp
    )

target_link_libraries(${PROJECT_NAME}
    PRIVATE
    PkgConfig::GLUT
    PkgConfig::GLU
    PkgConfig::GL
    )
